﻿
namespace Mulala.Cavan.Presentation.Mvc.ViewModel
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Mulala.Cavan.Presentation.Seedwork;
    using Mulala.Cavan.Domain.MainBoundedContext.ProprietorModule;
    using Mulala.Cavan.Domain.MainBoundedContext.SearchModule;

    public class ProprietorViewModel : EntityModel<Proprietor, ProprietorSearch>, IProprietorViewModel
    {
        public string Avatar { get; set; }
        /// <summary>
        /// 委托总数
        /// </summary>
        public long ConsignTotal { get; set; }
        /// <summary>
        /// 竞标总数
        /// </summary>
        public long ConsignBidderTotal { get; set; }
    }

    public class ProprietorsViewModel : WebModel, IProprietorsViewModel
    {
        public IList<IProprietorViewModel> Proprietors
        {
            get;
            set;
        }

        public ProprietorsViewModel()
        {
            this.Proprietors = new List<IProprietorViewModel>();
        }
    }
}
